/**
 * Yolema.com Inc.
 * Copyright (c) 2011-2012 All Rights Reserved.
 */
package org.grayrabbit.pay.core.service.system;

import java.util.List;
import org.grayrabbit.pay.core.model.pages.PageList;
import org.grayrabbit.pay.core.model.entity.system.AssAppsystemTradeterminal;

/**
 * 
 * 
 * @author liyd
 * @version $Id: AssAppsystemTradeterminalService.java, v 0.1 Fri Jun 01 11:14:02 CST 2012 liyd Exp $
 */
public interface AssAppsystemTradeterminalService {

    /**
     * 查询业务对象列表
     * 
     * @param assAppsystemTradeterminal
     * @return
     */
    public PageList<AssAppsystemTradeterminal> queryPageList(AssAppsystemTradeterminal assAppsystemTradeterminal);

    /**
     * 根据Id得到实体对象
     * 
     * @param id
     * @return
     */
    public AssAppsystemTradeterminal getById(Long id);

    /**
     * 根据系统id得到关联的终端id
     * @param id
     * @return
     */
    public List<Long> findBySystemId(Long id);

    /**
     * 根据id批量删除
     * 
     * @param idArray
     */
    public void deleteBatchById(Long[] idArray);

    /**
     * 查询所有对象
     * 
     * @return
     */
    public List<AssAppsystemTradeterminal> findAll();

    /**
     * 添加一个对象
     * 
     * @param assAppsystemTradeterminal
     */
    public void insert(AssAppsystemTradeterminal assAppsystemTradeterminal);

    /**
     * 更新一个对象
     * 
     * @param assAppsystemTradeterminal
     * @return
     */
    public int update(AssAppsystemTradeterminal assAppsystemTradeterminal);

    /**
     * 删除一个对象
     * 
     * @param assAppsystemTradeterminal
     */
    public void delete(AssAppsystemTradeterminal assAppsystemTradeterminal);

    /**
     * 批量删除系统id列表所对应的关联记录
     * @param systemId
     */
    public void deleteBatchBySystemIds(Long[] systemId);

    /**
     * 删除系统id列表所对应的关联记录
     * @param systemId
     */
    public void deleteBatchBySystemId(Long systemId);

    /**
     * 根据终端id获得关联的系统id列表
     * @param id
     * @return
     */
    public List<Long> findByTerminalId(Long id);

}
